<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>03_ES8-尾部逗号添加</title>
</head>
<body>

  <script>
    // 1. 对象的尾部逗号
    const obj = {
      name: 'why',
      age: 18,
      height: 1.88,
    }

    // 2. 数组的尾部逗号
    const arr = [
      10,
      20,
      30,
    ]

    function foo(num1, num2, ) {
      console.log(num1, num2)
    }

    foo(10, 20, )

  </script>
  
</body>
</html>